package com.lonely.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lonely.common.core.domain.StatusInfo;
import com.lonely.product.domain.dto.cuttingbed.QueryCuttingBedPageDTO;
import com.lonely.product.domain.entity.SysCuttingBed;
import com.lonely.product.domain.vo.cuttingbed.QueryCuttingBedPageVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author : 黄志标
 * @date: 2025/7/24 14:00
 * @description: 裁床mapper
 */
public interface SysCuttingBedMapper extends BaseMapper<SysCuttingBed> {

    /**
     * 裁床分页查询
     *
     * @param page
     * @param queryDto
     * @return
     */
    Page<QueryCuttingBedPageVO> page(Page<QueryCuttingBedPageVO> page, @Param("query") QueryCuttingBedPageDTO queryDto);

    /**
     * 获取裁床状态统计
     *
     * @param queryDto
     * @return
     */
    List<StatusInfo> getStatusTotals(@Param("query") QueryCuttingBedPageDTO queryDto);
}
